GUIControl description ...


Properties


AsButton

Button AsButton

If this control is a button, returns the Button interface; otherwise null.


AsInvWindow

InvWindow AsInvWindow

If this control is a inventory window, returns the InvWindow interface; otherwise null.


AsLabel

Label AsLabel

If this control is a label, returns the Label interface; otherwise null.


AsListBox

ListBox AsListBox

If this control is a list box, returns the ListBox interface; otherwise null.


AsSlider

Slider AsSlider

If this control is a slider, returns the Slider interface; otherwise null.


AsTextBox

TextBox AsTextBox

If this control is a text box, returns the TextBox interface; otherwise null.


Clickable

bool Clickable

Gets/sets whether this control can be clicked on or whether clicks pass straight through it.


Enabled

bool Enabled

Gets/sets whether this control is currently enabled.


Height

int Height

Gets/sets the height of the control.


ID

int ID

Gets the ID number of the control within its owning GUI.


OwningGUI

GUI OwningGUI

Gets the GUI that this control is placed onto.


Visible

bool Visible

Gets/sets whether this control is currently visible.


Width

int Width

Gets/sets the width of the control.


X

int X

Gets/sets the X position of the control's top-left corner.


Y

int Y

Gets/sets the Y position of the control's top-left corner.


Methods


BringToFront

Brings this control to the front of the z-order, in front of all other controls.


GetAtScreenXY

static GUIControl GetAtScreenXY(int x, int y)

Returns the GUIControl at the specified location.


SendToBack

Sends this control to the back of the z-order, behind all other controls.


SetPosition

void SetPosition(int x, int y)

Moves the control to the specified position within the GUI.


SetSize

void SetSize(int width, int height)

Changes the control to the specified size.